package com.smarthome.core.operationservicemanager;

import java.util.List;

import com.smarthome.domain.bean.ShLaundryFee;
import com.smarthome.domain.vo.boss.DataGrid;
import com.smarthome.domain.vo.boss.PageHelper;


/**
 * 
* @ClassName: LaundryFeeService
* @Description: 洗衣费service接口
* @author cyj
* @date 2016年4月12日 下午9:07:56
*
 */
public interface LaundryFeeService {

	/**
	 * 
	* @Title: getById 
	* @Description: 通过id获取洗衣费 
	* @param id
	* @return
	* ShLaundryFee
	* @throws 
	* @author cyj
	 */
	ShLaundryFee getById(Long id);
	
	
	
	/**
	 * 
	* @Title: qeuryDataGrid 
	* @Description: 获取洗衣费datagrid 
	* @param laundryFee
	* @param page
	* @return
	* PageHelper
	* @throws 
	* @author cyj
	 */
	DataGrid qeuryDataGrid(ShLaundryFee laundryFee, PageHelper page);
	
	
	/**
	 * 
	* @Title: saveOrUpdate 
	* @Description: 新增或修改 
	* @param laundryFee
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer saveOrUpdate(ShLaundryFee laundryFee);
	
	/**
	 * 
	* @Title: delete 
	* @Description: 根据id删除 
	* @param id
	* @return
	* Integer
	* @throws 
	* @author cyj
	 */
	Integer delete(Long id);
	
	
	/**
	 * 
	* @Title: checkLaundryType 
	* @Description: 验证一家洗衣店下是否有相同类型的洗衣费 
	* @param laundryFee
	* @return
	* boolean
	* @throws 
	* @author cyj
	 */
	boolean checkLaundryType(ShLaundryFee laundryFee);
	
	/**
	 * 
	* @Title: getList 
	* @Description: 获取费用list
	* @param laundryFee
	* @return
	* List<ShLaundryFee>
	* @throws 
	* @author cyj
	 */
	List<ShLaundryFee> getList(ShLaundryFee laundryFee);
}
